package com.fh.shop;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class Product implements Serializable {

  private Long id;
  private String productName;
  private BigDecimal price;
  private Long stock;
  private Long cate1;
  private Long cate2;
  private Long cate3;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  private Date createDate;
  private String mainImage;
  private Long brandId;
  @TableField(exist = false)
  private String brandName;
  private String cateName;
  //状态state
  private Integer status;
  private Integer recommend;
  private Integer newProduct;
  private Long sales;


}
